/**
 * @Title: FuncController
 * @Package cn.com.yiqi.wsc.portal.controller.admin
 * @Description: TODO
 * Copyright: Copyright (c) 2016
 * Company: 成都壹柒互动科技有限公司
 * @author 会员系统组-胥钰淋
 * @date 2017/2/15 10:56
 * @version V1.0
 */
package cn.com.yiqi.wsc.portal.controller.admin;

import cn.com.yiqi.wsc.common.BaseCriteria;
import cn.com.yiqi.wsc.common.Result;
import cn.com.yiqi.wsc.entity.func.Function;
import cn.com.yiqi.wsc.portal.controller.BaseController;
import cn.com.yiqi.wsc.portal.controller.admin.ro.FuncTreeRO;
import cn.com.yiqi.wsc.service.func.FuncService;
import cn.com.yiqi.wsc.service.func.dataobject.FuncTreeNodeDO;
import org.apache.shiro.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 会员系统组-胥钰淋
 * @ClassName: FuncController
 * @Description: TODO
 * @date 2017/2/15 10:56
 */
@Controller
@RequestMapping("/func")
public class FuncController extends BaseController {



    @RequestMapping("/index")
    public ModelAndView index() {
        ModelAndView mv = new ModelAndView("func/index");
//        List<FuncTreeNodeDO> list = funcService.getFuncTreeNodeList(null);
//        String str = GsonUtils.getGson().toJson(list);

        Object object =  SecurityUtils.getSubject().getPrincipal();
        mv.addObject("funcTreeList", "[]");
        this.getUserData(mv);
        return mv;
    }



}
